import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/folder_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class FolderListEntity {
	int? total;
	List<FolderData>? data;

	FolderListEntity();

	factory FolderListEntity.fromJson(Map<String, dynamic> json) => $FolderListEntityFromJson(json);

	Map<String, dynamic> toJson() => $FolderListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class FolderData {
	String? caseId;
	String? name;
	int? createdAt;

	FolderData();

	factory FolderData.fromJson(Map<String, dynamic> json) => $FolderDataFromJson(json);

	Map<String, dynamic> toJson() => $FolderDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}